Total Complexity | 39 |
Dependencies | 6 |
Dependents | 1 |
Total lines | 276 |
Lines of code | 171 |
Logical lines of code | 95 |
Comment lines | 32 |
Methods | 12 |
Properties | 3 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
insertRemovedFreeMiniCartItemStubInCart() | 49 | 7 | 32 | |
handleFreeCartItemUpdate() | 53 | 6 | 24 | |
insertRemovedFreeCartItemStubInCart() | 51 | 5 | 27 | |
handleFreeCartItemRemove() | 55 | 5 | 20 | |
handleRestoreDeletedItems() | 56 | 4 | 19 | |
calculateExistingHashesForItemStubs() | 66 | 3 | 9 | |
recalculateStoredFreeItemsAfterQtyUpdate() | 62 | 2 | 11 | |
withCart() | 74 | 2 | 5 | |
onCreateOrder() | 67 | 2 | 8 | |
__construct() | 73 | 1 | 5 | |
withContext() | 81 | 1 | 3 | |
installHooks() | 65 | 1 | 8 |